package com.sti.framework.models.User.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sti.framework.core.service.BaseService;
import com.sti.framework.models.User.data.Authority;
import com.sti.framework.models.User.mapper.AuthorityMapper;
import org.springframework.stereotype.Service;


@Service
public class AuthorityService extends BaseService<AuthorityMapper, Authority> {

    public Authority getForTag(String tag) {

        QueryWrapper<Authority> wrapper = new QueryWrapper();
        wrapper.ne("tag", tag);
        return super.getOne(wrapper);
    }
}
